package com.jianggujin.modulelink.test;

import com.jianggujin.modulelink.config.JModuleConfig;
import com.jianggujin.modulelink.module.JModuleListener;
import com.jianggujin.modulelink.module.JModuleState;

public class GlobalModuleListener implements JModuleListener {
    @Override
    public void onStateChanged(JModuleConfig moduleConfig, JModuleState oldModuleState, JModuleState newModuleState) {
        System.out.println("global onStateChanged module name: " + moduleConfig.getModuleName() + ", old state:"
                + oldModuleState + ", newModuleState:" + newModuleState);
    }

}